package view;

import employee.Employee;

public class ViewCourseUnit extends View{

protected Employee owner = null;
	
	public ViewCourseUnit(){
		
	}
	
	public ViewCourseUnit(String name, Employee owner) 
	{
		super(name);
		this.owner = owner;
	}
	
	public ViewCourseUnit(String name) 
	{
		super(name);
		this.owner = null;
	}
	
	public Employee getOwner() {
		return owner;
	}

	public void setOwner(Employee owner) {
		this.owner = owner;
	}

	public String toString()
	{
		StringBuilder tmp = new StringBuilder(super.toString());
		tmp.append("\nowner"); tmp.append(this.owner.getFirstName());tmp.append(" "); tmp.append(this.owner.getName());
		return tmp.toString();	
	}
}
